package com.yanqu.road.entity.activity.wishpool;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.utils.string.StringUtils;

import java.util.List;

@FieldTypeAnnotation(tableName = "t_s_wish_pool_reward")
public class WishPoolBigReward extends DataObject {

    @FieldTypeAnnotation(desc = "活动ID")
    private int activityId;

    @FieldTypeAnnotation(desc = "许愿ID")
    private int id;

    @FieldTypeAnnotation(desc = "所需愿望值")
    private int wishValue;

    @FieldTypeAnnotation(desc = "可选奖励")
    private List<String> rewardList;

    public int getWishValue() {
        return wishValue;
    }

    public void setWishValue(int wishValue) {
        this.wishValue = wishValue;
    }

    public List<String> getRewardList() {
        return rewardList;
    }

    public void setRewardList(String rewardListStr) {
        this.rewardList = StringUtils.stringToStringList(rewardListStr, "\\|");
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }
}
